package org.example.test.service;

import org.example.test.dal.entity.Product;
import org.example.test.request.ProductRequest;

import java.util.List;

public interface ProductService {

    void addProduct(ProductRequest productRequest);
    Product updateProduct(Long productId, ProductRequest productRequest);
    List<Product> searchProducts(String keyword);
    void deleteProduct(Long productId);
    List<Product> searchAll();
    Product searchByProductId(Long productId);
    List<Product> searchByCategory(Long categoryId);
    List<Product> searchByUserId(Long userId);
}
